﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeBehind="EditarAreasNegocio.aspx.cs" Inherits="Atendex.Web.EditarAreasNegocio"
    Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h3>
        Área de Negócio</h3>
    <div id="page-form">
        <p>
            <asp:Label runat="server" ID="lblMensagem" Visible="false"></asp:Label></p>
        <fieldset class="form-data">
            <legend>
                <asp:Label ID="lblLegend" runat="server">Nova Área de Negócio</asp:Label></legend>
            <p>
                <asp:HiddenField ID="hiddenId" runat="server" />
                <asp:Label ID="lblNome" AssociatedControlID="txtNome" runat="server" Text="Nome"></asp:Label>
                <asp:TextBox ID="txtNome" runat="server"></asp:TextBox>
            </p>
            <p>
                <asp:Label ID="lblEmail" AssociatedControlID="txtEmail" runat="server" Text="E-mail da unidade"></asp:Label>
                <asp:TextBox ID="txtEmail" runat="server"></asp:TextBox>
            </p>
        </fieldset>
        <fieldset class="actions">
            <asp:Button runat="server" ID="btnSalvar" Text="Salvar" OnClick="btnSalvar_Click" />
            <asp:Button runat="server" ID="btnLimpar" Text="Limpar" OnClick="btnLimpar_Click" />
            <asp:Button ID="btnExcluir" runat="server" Text="Excluir" Visible="false" 
                onclick="btnExcluir_Click" />
        </fieldset>
        <fieldset class="form-data">
            <legend>Lista de Áreas de Negócio</legend>
            <asp:GridView ID="gridAreas" runat="server" CssClass="grid-view" AutoGenerateColumns="False"
                OnRowCommand="gridAreas_RowCommand">
                <Columns>
                    <asp:ButtonField ButtonType="Button" Text="Editar" CommandName="Editar" />
                    <asp:BoundField DataField="Nome" HeaderText="Nome" />
                    <atendex:CompositeBoundField DataField="Responsavel.Email" HeaderText="Email" />
                </Columns>
            </asp:GridView>
        </fieldset>
    </div>
</asp:Content>
